<template>
  <div class="container">
      <div class="top-nav-bar flex">
        <div class="flex-con">
            <div class="ib active">
                正在抢购
            </div>            
        </div>
        <div class="separator"></div>
        <div class="flex-con">
            <router-link class="ib" tag="div" :to="{path:'xsqg'}">
              即将抢购
            </router-link>
        </div>
      </div>
      <div class="top-nav-bar-before"></div>
      <div class="text-center">
          <img src="../../assets/icons/goods/qctime@2x.png" alt="" class="qctime-img">
      </div>
    <div class="flex time-counter">
        <div class="hour-counter">                  
            02
            <div class="time-uni">时</div>                  
        </div>
        <div class="minutes-counter">
            11
            <div class="time-uni">分</div>
        </div>
        <div class="seconds-counter">
            02
            <div class="time-uni">秒</div>
        </div>
    </div>
    <div class="flex dlines">
        <div class="dline">
            <div class="dline-inner"></div>
        </div>
        <div class="dline">
            <div class="dline-inner"></div>
        </div>
        <div class="dline">
            <div class="dline-inner"></div>
        </div>
    </div>
    <div class="goods-list">
        <div class="goods-list-item border-b" v-for="(item,index) in list" :key="index">
            <div class="flex">
               <div>
                  <img src="../../assets/imgs/goods1@2x.png" alt="" class="goods-img"/>
               </div>
               
                <div class="goods-info">
                    <div class="goods-title">
                        惠普F550G 超清行车记录仪高清夜
                        视1440P停车监控
                    </div>
                    <div class="progressbar">
                        <img src="../../assets/icons/goods/progressbar.png" alt="" class="progressbar-img">
                        <div class="progressbaring"></div>
                    </div>
                    <div class="progressbartxt flex">
                       <div class="progress-price flex-con">
                         <span class="now-price">￥500.00</span><span class="orign-price">/￥800</span>  
                       </div>
                       <div class="progress-number">
                         已抢<span class="progress-number-gone">150</span>件
                       </div>
                    </div>
                    <div class="btn-areas">
                        <div class="buynowbtn">马上抢</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [{}, {}, {}, {}]
    };
  }
};
</script>

<style lang="scss" scoped>
html,
body,
.container {
  background-color: #f0862c;
}
.qctime-img {
  width: 9.2267rem;
  margin-top: 0.2933rem;
}
.top-nav-bar {
  height: 1.12rem;
  background-color: #fff;
  text-align: center;
  font-size: 0.4rem;
  color: #333333;
  position: fixed;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  .separator {
    width: 1px;
    height: 0.4533rem;
    background: #eee;
  }
  & > div {
    height: 1.12rem;
    line-height: 1.12rem;
  }
  .active {
    position: relative;
    color: #e30421;

    &::after {
      content: " ";
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 0.0533rem;
      background-color: #e30421;
    }
  }
}
.top-nav-bar-before {
  height: 1.12rem;
}
.time-counter {
  padding: 0 0.4rem;
  justify-content: space-between;
  font-size: 0.64rem;
  margin-top: -0.65rem;
  text-align: center;
  color: #e30421;
  & > div {
    background-color: #fff;
    width: 2.7333rem;
    height: 1.28rem;
    padding-top: 0.1rem;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 0.6267rem;
    border: solid 0.04rem #dc3e00;
  }
  .time-uni {
    font-size: 0.2667rem;
    color: #999;
    padding-top: 0.05rem;
  }
}
.dlines {
  justify-content: space-between;
  padding: 0 0.4rem;
  .dline {
    width: 2.7333rem;
    height: 0.2267rem;
    text-align: center;
    .dline-inner {
      height: 0.2267rem;
      border-left: 3px solid #dc3e00;
      border-right: 3px solid #dc3e00;
      width: 0.8133rem;
      vertical-align: middle;
      position: relative;
      left: 50%;
      margin-left: -0.40665rem;
    }
  }
}
.goods-list {
  background-color: #fff;
  width: 9.2rem;
  margin: 0 auto;
  border-radius: 0.2667rem;
  border: solid 3px #dc3e00;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  .goods-list-item {
    margin: 0 0.4rem;
    padding: 0.4rem 0;
  }
  .goods-info {
    padding-left: 0.3867rem;
  }
  .goods-img {
    width: 2.68rem;
    height: 2.68rem;
  }
  .goods-title {
    font-size: 0.3467rem;
    color: #222;
    padding-bottom: 0.2rem;
  }
  .start-time {
    color: #ff2a2a;
    font-size: 0.3467rem;
    padding-bottom: 0.3867rem;
  }
  .goods-points {
    font-size: 0.4rem;
    color: #ff2a2a;
  }
  .progressbar {
    width: 5.3067rem;
    height: 0.16rem;
    position: relative;
    .progressbar-img {
      width: 5.3067rem;
      height: 0.16rem;
      display: block;
    }
    .progressbaring {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 10%;
      background-color: #007f00;
      border-radius: 5px;
    }
  }
  .progressbartxt {
    padding-top: 0.2rem;
  }
  .progress-price {
    font-size: 0.2933rem;
    .now-price {
      color: #007f00;
    }
    .origin-price {
      color: #999999;
    }
  }
  .progress-number {
    font-size: 0.2933rem;
    color: #666666;
    .progress-number-gone {
      color: #dd0000;
    }
  }
  .btn-areas {
    padding-top: 0.3867rem;
    text-align: right;
    .buynowbtn {
      display: inline-block;
      width: 2.1067rem;
      height: 0.6933rem;
      line-height: 0.6933rem;
      text-align: center;
      background-image: url("../../assets/icons/goods/redbgbtn.png");
      background-size: 2.1067rem 0.6933rem;
      background-repeat: no-repeat;
      background-position: left top;
      font-size: 0.3467rem;
      color: #fff;
    }
  }
}
</style>

